import config from "../../static/js/conf/config";
import {request} from "../../static/js/utils/request";

//提交订单
export function addOrderData(data){
    return request(config.baseApi+"/v1/user/order/add","post",data);
}

//微信小程序统一下单接口
export function wechatUnifiedOrderData(data){
    return request(config.baseApi+"/v1/wxpay/wechat_unifiedorder","post",data);
}

//获取已付款订单数据
export function getPayOrderData(data){
    return request(config.baseApi+"/v1/user/order/show","post",data);
}

//获取订单详情数据
export function getOrderDetailsData(data){
    return request(config.baseApi+"/v1/user/order/details","post",data);
}

//申请退款
export function applyRefundOrderData(data){
    return request(config.baseApi+"/v1/user/order/refund","post",data);
}

//查看退款订单数据
export function getRefundOrderData(data){
    return request(config.baseApi+"/v1/user/order/show_refund","post",data);
}